package pl.edu.agh.neural.simple;

import pl.edu.agh.neural.core.INeuron;

public class InputConnection {

	private INeuron neuron;
    private double weight;
    private double weightDelta;

	public INeuron getNeuron() {
		return neuron;
	}

	public double getWeight() {
		return weight;
	}

    public void setWeight(double weight) {
        this.weightDelta = this.weight - weight;
        this.weight = weight;
    }

    public double getWeightDelta() {
        return weightDelta;
    }

	public InputConnection(INeuron neuron, double weight) {
		this.neuron = neuron;
		this.weight = weight;
	}
}
